<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
		<title>搜索结果</title>
		<link rel="shortcut icon" th:href="@{/picture/favicon.ico}"/>
		<link rel="stylesheet" type="text/css" th:href="@{/css/base.css}"/>
		<link rel="stylesheet" type="text/css" th:href="@{/css/result.css}"/>
		<script th:src="@{/js/jquery-3.4.1.js}" type="text/javascript" charset="utf-8"></script>
		<script th:src="@{/js/result.js}" type="text/javascript" charset="utf-8"></script>
		<script th:src="@{/js/base.js}" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="Header">
		<div>
				<a th:href="@{/index}" class="log"><img th:src="@{/picture/log.png}"/></a>
				<div class="so">
						<select id="selectmodel">
								<option label="小说">小说</option>
								<option label="作者">作者</option>
						</select>
						<input type="text" name="searchbox" id="searchbbox" required="required"/>
						<button class="sub" onclick="searchbtn()">搜索</button>
				</div>
				<dl class="nav">
						<dd th:if="${session.user_reader==null}">
								<div>
										<span class="login_log"></span>
										<a th:href="@{/loginAndRegist/login}">登录</a>
								</div>
						</dd>
						<dd th:if="${session.user_reader==null}">
								<div>
										<span class="login_log"></span>
										<a th:href="@{/loginAndRegist/regist}">注册</a>
								</div>
						</dd>

						<dd th:if="${session.user_reader!=null}">
								<div>
												<span>
														<img th:if="${session.user_reader.headImage!=null}" th:src="@{'/user-photo/'+${session.user_reader.nickName}+'/'+${session.user_reader.headImage}}" alt="404" class="headimage">
														<img th:if="${session.user_reader.headImage==null}" th:src="@{/picture/default_user.png}" alt="404" class="headimage">

												</span>
										<a th:href="@{/reader/getusermsg}">欢迎！[[${session.user_reader.nickName}]]</a>
										<a th:href="@{/loginAndRegist/loginout}">注销</a>
								</div>
						</dd>

						<dd>
								<div>
										<span class="booklib_log"></span>
										<a th:if="${session.user_reader!=null}" th:href="@{'/reader/personshelf?nickName='+${session.user_reader.nickName}}" >书架</a>
										<a th:if="${session.user_reader==null}" >书架</a>
								</div>
						</dd>
				</dl>
		</div>
</div>
<div class="NavBar">
		<div>
				<a th:href="@{/index}"><span>首页</span></a>
				<a th:href="@{/xuanhuan}"><span>玄幻</span></a>
				<a th:href="@{/kehuan}"><span>科幻</span></a>
				<a th:href="@{/lishi}"><span>历史</span></a>
				<a th:href="@{/dushi}"><span>都市</span></a>
				<a th:href="@{/wuxia}"><span>武侠</span></a>
				<a th:href="@{/wangyou}"><span>网游</span></a>
				<a th:href="@{/rank}"><span>排行</span></a>
				<a th:href="@{/classification}"><span>分类</span></a>
				<a th:href="@{/auth/authorUI}"><span>作家专区</span></a>
		</div>
</div>

		<div class="title" th:if="${erro==true}">
				[[${searchresult}]]
		</div>

		<div class="title" th:if="${erro==false}">
				<span id="title_head">搜索 <strong>[[${booknameresult==null?"作者":"小说"}]]</strong> 关键字  > </span>
				<span class="title_body" th:if="${booknameresult!=null&&booknameresult!=''}">"[[${booknameresult}]]"</span>
				<span class="title_body" th:if="${authnameresult!=null&&authnameresult!=''}">"[[${authnameresult}]]"</span>
				<span id="count_result">共找到：<strong>[[${searchresult.size()}]]</strong>  本小说</span>
		</div>

		<div class="search-list"  th:if="${erro==false}">
				<div th:if="${searchresult.size()!=0}">
								<div class="textlist" th:each="book:${searchresult}">

										<input type="hidden" class="imgs" th:value="'/picture/'+${book.bookName}">
										<div class="textleft">
												<a class="img_p"></a>
										</div>
										<div class="textmiddle">
												<p>
														<span>书名：</span>
														<a th:href="@{'/novel/book/'+${book.bookName}}">[[${book.bookName}]]</a>
												</p>
												<p><span>作者：</span>[[${book.bookAuthor}]]</p>
												<p><span>状态：</span>[[${book.bookState}]]</p>
												<p><span>简介：</span>[[${book.bookIntro}]]</p>
										</div>
										<div class="textright">
												<a th:href="@{'/novel/book/'+${book.bookName}}" class="read">在线阅读</a>
										</div>
								</div>
				</div>
		</div>

<div class="Footer">
		<p>本站所收录的完整版电子书和小说及评论都属网友的个人上传行为，如侵犯您的权益，请将相关详情通知我们，我们将及时处理</p>
</div>
</body>
</html>